
<script>

<!--    fetch('/todos')-->
<!--    .then(function(response){-->
<!--        return response.json();-->
<!--    })-->
<!--    .then(function(myJson){-->
<!--        document.write(myJson)-->
<!--    })-->

    var url = "/todos";
    var headers = {
        "Content-Type": "application/x-www-form-urlencoded"
    }

    fetch(url,{
        method:'POST',
        body:'title=wwww',
        headers:headers
    }).then(res => res.json())
    .then(response => console.log('Succsee',response));


</script>